/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.cursojava.client;


import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.widget.button.Button;

/**
 *
 * @author p1520009
 */
public class CadBaseGWT extends BaseGWT {
    protected Button btnCadastrar = new Button("Cadastrar");
    protected Button btnFechar = new Button("Fechar");
    public CadBaseGWT() {
        getCpLeste().setVisible(false);
        getCpOeste().setVisible(false);
        getCpNorte().setVisible(false);
        

        btnCadastrar.addListener(Events.OnClick, new Listener<ButtonEvent>() {

            @Override
            public void handleEvent(ButtonEvent be) {
                cadastrar(be);
            }
        });

        btnFechar.addListener(Events.OnClick, new Listener<ButtonEvent>() {

            @Override
            public void handleEvent(ButtonEvent be) {
                fechar(be);
            }
        });

        
    }


    public void cadastrar(ButtonEvent be) {

    }

    public void fechar(ButtonEvent be) {
    }
}

